const sqlite3 = require('sqlite3').verbose();
const db = new sqlite3.Database('../db/mydatabase.db'); // 创建或打开数据库文件

db.run(`CREATE TABLE IF NOT EXISTS users (id INTEGER PRIMARY KEY, name TEXT, age INTEGER)`);

db.run(`INSERT INTO users (name, age) VALUES (?, ?)`, ['Alice', 25]);

db.all(`SELECT * FROM users`, (err, rows) => {
  if (err) throw err;
  console.log(rows);
});



// module.exports = routerWorddata